import { h,init } from 'snabbdom'
let patch = init([])

let vnode = h('div#bos',[h("h1","hello snabbdom"),h("p","段落标签")])
let app = document.querySelector("#app")
let oldVnode = patch(app,vnode)

setTimeout(() => {
  vnode = h('div#bos',[h("h1","hello word"),h("p","段落")])
  patch(oldVnode,vnode)
  patch(oldVnode,h("!"))
}, 2000);

